<?php
/* @var $this BuildingServiceEquipmentController */
/* @var $model BuildingServiceEquipment */

$this->breadcrumbs=array(
	'Building Service Equipments'=>array('index'),
	'Manage',
);

$this->menu=array(
	array('label'=>'List BuildingServiceEquipment', 'url'=>array('index')),
	array('label'=>'Create BuildingServiceEquipment', 'url'=>array('create')),
);

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$('#building-service-equipment-grid').yiiGridView('update', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<h1>Manage Building Service Equipments</h1>

<p>
You may optionally enter a comparison operator (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>&lt;&gt;</b>
or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.
</p>

<?php echo CHtml::link('Advanced Search','#',array('class'=>'search-button')); ?>
<div class="search-form" style="display:none">
<?php $this->renderPartial('_search',array(
	'model'=>$model,
)); ?>
</div><!-- search-form -->

<?php $this->widget('zii.widgets.grid.CGridView', array(
	'id'=>'building-service-equipment-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		'id',
		'boiler_provider',
		'no_of_unit_provided',
		'bp_fuel',
		'bp_capacity',
		'bp_container',
		/*
		'bp_location',
		'lpg_installation_covered_with_permit',
		'fuel_with_storage_permit',
		'generator_set_provided',
		'gsp_type',
		'gsp_fuel',
		'gsp_capacity',
		'gsp_location',
		'dike_or_bundwall_provided',
		'gsp_container',
		'gsp_dispensing_system',
		'output_capacity',
		'gsp_mechanical_permit',
		'gspmp_date_issued',
		'gsp_fuel_with_storage_permit',
		'gsp_automatic_transfer_switch_provided',
		'gsp_time_interval',
		'other',
		'refuse_handling_facility_provided',
		'enclosure_provided',
		'fire_resistive',
		'fire_protection_provided',
		'rhf_type',
		'frequency_of_collection',
		'how_collected',
		'any_electrical_hazard',
		'aeh_location',
		'any_mechanical_hazard',
		'amh_location',
		'no_of_elevator_provided',
		'fireman_elevator_provided',
		'fireman_key_or_switch_provided',
		'other_bulding_service_system',
		'inspection_id',
		*/
		array(
			'class'=>'CButtonColumn',
		),
	),
)); ?>
